@web3modal/ethereum
and @web3modal/react
. Now you can install AppKit library and update Wagmi
and Viem
.createAppKit
from @reown/appkit
and the necessary chains from @reown/appkit/networks
wagmiAdapter
using WagmiAdapter
function as shown belowwagmiAdapter
and other parameters to createAppKit
<appkit-button />
.Learn more about Reown AppKit here.adapters
property is a new property that is an array of adapters that can be initialized.
chains
property is now networks
in Reown AppKit. You should import them from @reown/appkit/networks
package instead of importing these networks from viem
or other packages.
defaultChain
property is now defaultNetwork
in Reown AppKit. This is a network object that specifies the default network for your Web3 app.
undefined
(unless you connect to a Solana wallet).chainId
getChainId()
returned a single type rather than multiple types:@web3modal/wagmi
(along with ethers and ethers5) returned number | undefined
.@web3modal/solana
returned string | undefined
.number | string | undefined
.modal.switchNetwork
takes the chain object as parameter rather than the chain id.polygon
is imported from @reown/appkit/networks
.address
, chainId
, isConnected
, provider
, and providerType
.
address
- It returns the connected wallet address. The value returned is the same as modal.getAddress()
chainId
- It returns the active network’s chainId
. The value returned is the same as modal.getChainId()
isConnected
- It returns if the selected network adapter is connected. The value returned is the same as modal.getIsConnected()
provider
- It returns the active connection provider. The value returned is the same as modal.getWalletProvider()
providerType
- It returns the active connection provider type. The value returned is the same as modal.getWalletProviderType()
modal.getState
- it returns the modal state
open
- it returns boolean that indicates if the modal is open or notselectedNetworkId
- it returns active network’s idmodal.subscribeState
modal.setThemeMode
modal.getThemeMode
modal.setThemeVariables
modal.getThemeVariables
modal.subscribeTheme
modal.getEvent
modal.subscribeEvents
@web3modal/wagmi
. Now you can install AppKit library and update Wagmi
@tanstack/react-query
and Viem
.createAppKit
from @reown/appkit
and the necessary chains from @reown/appkit/networks
wagmiAdapter
using WagmiAdapter
function as shown belowwagmiAdapter
(optional) and other parameters to createAppKit
<appkit-button />
.Learn more about Reown AppKit here.@web3modal/wagmi
. Now you can install AppKit library and update Wagmi
and Viem
.createAppKit
from @reown/appkit
and the necessary chains from @reown/appkit/networks
wagmiAdapter
using WagmiAdapter
function as shown belowwagmiAdapter
(optional) and other parameters to createAppKit
<appkit-button />
.Learn more about Reown AppKit here.